﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User/MasterPage.master" AutoEventWireup="true" CodeFile="SearchResult.aspx.cs" Inherits="User_SearchResult" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="inside">
				
				
				<h3>Kết Quả Tìm Kiếm</h3><br />
    <asp:Label ID="Label1" runat="server" Text="Chọn giá cần tìm" ForeColor="Black"></asp:Label>
                <br /><br />
                <div class="timkiem" id="filterPrice">
                    <select class="from-price" style="height: 23px">
                      <option value="0">Giá Từ</option>
                        <%
                            for (int i = 1; i <= 10; i++)
                            {
                        %>
                        <option value="<% Response.Write(i * 100000);%>"><% Response.Write(i * 100000);%> VNĐ</option>
                        <% }%>
                    </select>
                   <select class="to-price" style="height: 23px">
                       <option value="0">Giá Đến</option>
                        <%
                            for (int i = 1; i <= 10; i++)
                            {
                        %>
                        <option value="<% Response.Write(i * 100000);%>"><% Response.Write(i * 100000);%> VNĐ</option>
                        <% }%>
                       
                    </select>
                </div>
                <br />
    <asp:Label ID="lbKQTimKiem" runat="server" ForeColor="Red"></asp:Label>
				<div id="items">
                   
                    <asp:DataList ID="dlSanPham" runat="server" RepeatColumns="3">
                        <ItemTemplate>
                        <div class="item">
						<a href='<%# "ProductDetail.aspx?MaSP="+Eval("MaSP")+"&LoaiSP="+Eval("LoaiSP") %>'> 
                        <asp:Image ID="Image1" runat="server" width="213px" height="192px" 
                                ImageUrl='<%# "~/User/HinhAnh/"+ Eval("HinhAnh") %>' /></a><br />
						<p>
                            <asp:HyperLink ID="HyperLink1" runat="server" 
                                NavigateUrl='<%# "~/User/ProductDetail.aspx?MaSP="+Eval("MaSP") %>'>Chi Tiết</asp:HyperLink>
                            </p><span class="price"> 
                                <asp:Label ID="Label2" runat="server" 
                                Text='<%# Eval("Gia","{0:0,00#VND}") %>'></asp:Label></span>
					    </div>
                        </ItemTemplate>
                    </asp:DataList>
                    
				</div>
                <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="" 
        LabelText="" NextText="" ResultsFormat="" 
                        PageNumbersSeparator="&amp;nbsp;&amp;nbsp;">
    </cc1:CollectionPager>
			</div>
</asp:Content>

